from students.studends.student_db import StudentDB


class Stundentservice:
    def __init__(self):
        self.studentDB=StudentDB()

    def search(self,sno=None,name=None):
        return self.studentDB.search(sno,name)
    def add(self,student):
        return self.studentDB.add(student)
    def update(self,student):
        return self.studentDB.update(student)
    def delete(self,sno):
        return self.studentDB.delete(sno)
if __name__ == '__main__':
    s1=Stundentservice()
    s1.search(sno="s003")
